package org.jeecg.modules.system.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * 登录表单
 *
 * @Author scott
 * @since  2019-01-18
 */
@ApiModel(value="货主登录对象", description="货主登录对象")
@Data
public class CustomerSysLoginModel extends SysLoginModel {

    /**客户类型 (customer_type  1个人 2 公司)*/
    @Dict(dicCode = "customer_type")
    @ApiModelProperty(value = "客户类型 (customer_type  1个人 2 公司)")
    private String customerType;

    /**客户来源 (customer_channel  1平台 2 APP)*/
    @Dict(dicCode = "customer_channel")
    @ApiModelProperty(value = "客户来源 (customer_channel  1平台 2 APP)")
    private String customerChannel;

    /**客户名称*/
    @ApiModelProperty(value = "客户名称")
    private String customerName;

    @ApiModelProperty(value = "客户简称")
    private String customerShortName;

    /**企业法人姓名*/
    @ApiModelProperty(value = "企业法人姓名")
    private String legalName;

    /**法人手机号*/
    @ApiModelProperty(value = "法人手机号")
    private String legalPhone;

    /**统一社会信用代码*/
    @ApiModelProperty(value = "统一社会信用代码")
    private String creditCode;

    /**营业执照有效期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "营业执照有效期")
    private Date businessLicenseExpiredDate;

    /**营业执照照片*/
    @ApiModelProperty(value = "营业执照照片")
    private String businessLicenseImg;

    /**营业执照副本*/
    @ApiModelProperty(value = "营业执照副本")
    private String businessLicenseImg2;

    /**法人身份证正面照片*/
    @ApiModelProperty(value = "法人身份证正面照片")
    private String legalIdcardImg;

    /**法人身份证反面照片*/
    @ApiModelProperty(value = "法人身份证反面照片")
    private String legalIdcardBackImg;

    /**详细地址*/
    @ApiModelProperty(value = "详细地址")
    private String detailAddress;

    /**联系人*/
    @ApiModelProperty(value = "联系人")
    @NotEmpty(message = "联系人不允许为空")
    private String contactName;

    /**登陆手机号*/
    @ApiModelProperty(value = "登陆手机号")
    private String loginPhone;

    /**身份证号*/
    @ApiModelProperty(value = "身份证号")
    private String idcard;

    /**身份证正面照片*/
    @ApiModelProperty(value = "身份证正面照片")
    private String idcardImg;

    /**身份证反面照片*/
    @ApiModelProperty(value = "身份证反面照片")
    private String idcardBackImg;
}
